
package org.springxrsk.modules.classes.service.impl;

import org.springxrsk.modules.classes.pojo.entity.QyClassesEntity;
import org.springxrsk.modules.classes.pojo.vo.QyClassesVO;
import org.springxrsk.modules.classes.excel.QyClassesExcel;
import org.springxrsk.modules.classes.mapper.QyClassesMapper;
import org.springxrsk.modules.classes.service.IQyClassesService;
import org.springframework.stereotype.Service;
import com.baomidou.mybatisplus.core.conditions.Wrapper;
import com.baomidou.mybatisplus.core.metadata.IPage;
import org.springxrsk.core.mp.base.BaseServiceImpl;
import java.util.List;

/**
 * 班级管理 服务实现类
 *
 *  @author
 * @since 2024-06-15
 */
@Service
public class QyClassesServiceImpl extends BaseServiceImpl<QyClassesMapper, QyClassesEntity> implements IQyClassesService {

	@Override
	public IPage<QyClassesVO> selectQyClassesPage(IPage<QyClassesVO> page, QyClassesVO qyClasses) {
		return page.setRecords(baseMapper.selectQyClassesPage(page, qyClasses));
	}


	@Override
	public List<QyClassesExcel> exportQyClasses(Wrapper<QyClassesEntity> queryWrapper) {
		List<QyClassesExcel> qyClassesList = baseMapper.exportQyClasses(queryWrapper);
		//qyClassesList.forEach(qyClasses -> {
		//	qyClasses.setTypeName(DictCache.getValue(DictEnum.YES_NO, QyClasses.getType()));
		//});
		return qyClassesList;
	}

}
